package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 *  实体类
 * 表名：sys_position
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_position")
public class SysPosition implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 32)
    private String id;
    
    /**
     * 职务编码
     */
    @Column(name = "code", length = 100)
    private String code;
    
    /**
     * 职务名称
     */
    @Column(name = "name", length = 100)
    private String name;
    
    /**
     * 职级
     */
    @Column(name = "post_rank", length = 2)
    private String postRank;
    
    /**
     * 公司id
     */
    @Column(name = "company_id", length = 255)
    private String companyId;
    
    /**
     * 创建人
     */
    @Column(name = "create_by", length = 50)
    private String createBy;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    /**
     * 修改人
     */
    @Column(name = "update_by", length = 50)
    private String updateBy;
    
    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private java.time.LocalDateTime updateTime;
    
    /**
     * 组织机构编码
     */
    @Column(name = "sys_org_code", length = 50)
    private String sysOrgCode;
    
    @Override
    public String toString() {
        return "SysPosition{" +
            "id=" + id +
            ", code=" + code +
            ", name=" + name +
            ", postRank=" + postRank +
            ", companyId=" + companyId +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
            ", updateBy=" + updateBy +
            ", updateTime=" + updateTime +
            ", sysOrgCode=" + sysOrgCode +
        '}';
    }
} 